/*
 * 文件名:CustomerSetting.java
 * 创建时间:2010-10-01
 * 版本:2.0
 * 版权所有:杨涛 walle1027@gmail.com
 */
package com.yangtao.wms.domain;

import com.yangtao.framework.hibernate.BaseEntity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author 代码生成器 v-2.0
 * @version 2.0
 */
@Entity
@Table(name = "WMS_MST_CUSTOMER_SETTING")
public class CustomerSetting extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 缺省装箱类型
	 */
	@Column(name = "DFT_PKG_TYPE", length = 20)
	private String dftPkgType;
	/**
	 * 缺省包装代码
	 */
	@Column(name = "DFT_PKG_CODE", length = 20)
	private String dftPkgCode;
	/**
	 * 缺省上架规则
	 */
	@Column(name = "DFT_REG_RULE", length = 20)
	private String dftRegRule;
	/**
	 * 库存指定方式
	 */
	@Column(name = "STOCK_ASSIGN", length = 20)
	private String stockAssign;
	/**
	 * 缺省批次属性
	 */
	@Column(name = "DFT_BATCH_TYPE", length = 20)
	private String dftBatchType;
	/**
	 * 缺省库存周转规则
	 */
	@Column(name = "DFT_LOCREV_RULE", length = 20)
	private String dftLocrevRule;
	/**
	 * 缺省预分配规则
	 */
	@Column(name = "DFT_PRE_ASSIGN_RULE", length = 20)
	private String dftPreAssignRule;
	/**
	 * 缺省分配规则
	 */
	@Column(name = "DFT_ASSIGN_RULE", length = 20)
	private String dftAssignRule;
	/**
	 * 缺省补货规则
	 */
	@Column(name = "DFT_SUPPLY_RULE", length = 20)
	private String dftSupplyRule;
	/**
	 * 缺省质检规则
	 */
	@Column(name = "DFT_QT_RULE", length = 20)
	private String dftQtRule;
	/**
	 * 体积重量计算方式
	 */
	@Column(name = "CHARGE_RULE", length = 20)
	private String chargeRule;
	/**
	 * 费率代码
	 */
	@Column(name = "RATE_ID", length = 20)
	private String rateId;
	/**
	 * 结算方
	 */
	@Column(name = "SETTLE_ID", length = 20)
	private String settleId;
	/**
	 * 承运商
	 */
	@Column(name = "CARRIER_ID", length = 20)
	private String carrierId;
	/**
	 * 一频分配排序规则
	 */
	@Column(name = "FIRST_ORDER_RULE", length = 20)
	private String firstOrderRule;
	/**
	 * 币种
	 */
	@Column(name = "MONEY_TYPE", length = 20)
	private String moneyType;
	/**
	 * 缺省收货单位
	 */
	@Column(name = "DFT_REC_UNIT", length = 20)
	private String dftRecUnit;
	/**
	 * 缺省发货单位
	 */
	@Column(name = "DEP_SHP_UNIT", length = 20)
	private String depShpUnit;
	/**
	 * 打印单位
	 */
	@Column(name = "PRINT_UNIT", length = 20)
	private String printUnit;
	/**
	 * EDI代码
	 */
	@Column(name = "EDI_CODE", length = 20)
	private String ediCode;
	/**
	 * 业务担当
	 */
	@Column(name = "SCOPE", length = 20)
	private String scope;

	/**
	 * 物料主表
	 */
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "material_id")
	private Material material;

	/**
	 * 物料主表
	 */
	@Column(name = "material_id", updatable = false, insertable = false)
	private String materialId;
	/**
	 * 客户基本信息表
	 */
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "customer_id")
	private Customer customer;

	/**
	 * 客户基本信息表
	 */
	@Column(name = "customer_id", updatable = false, insertable = false)
	private String customerId;

	/**
	 * 获取  缺省装箱类型
	 *
	 * @return dftPkgType
	 */
	public String getDftPkgType() {
		return dftPkgType;
	}

	/**
	 * 设置 缺省装箱类型
	 *
	 * @param dftPkgType 缺省装箱类型
	 */
	public void setDftPkgType(String dftPkgType) {
		this.dftPkgType = dftPkgType;
	}

	/**
	 * 获取  缺省包装代码
	 *
	 * @return dftPkgCode
	 */
	public String getDftPkgCode() {
		return dftPkgCode;
	}

	/**
	 * 设置 缺省包装代码
	 *
	 * @param dftPkgCode 缺省包装代码
	 */
	public void setDftPkgCode(String dftPkgCode) {
		this.dftPkgCode = dftPkgCode;
	}

	/**
	 * 获取  缺省上架规则
	 *
	 * @return dftRegRule
	 */
	public String getDftRegRule() {
		return dftRegRule;
	}

	/**
	 * 设置 缺省上架规则
	 *
	 * @param dftRegRule 缺省上架规则
	 */
	public void setDftRegRule(String dftRegRule) {
		this.dftRegRule = dftRegRule;
	}

	/**
	 * 获取  库存指定方式
	 *
	 * @return stockAssign
	 */
	public String getStockAssign() {
		return stockAssign;
	}

	/**
	 * 设置 库存指定方式
	 *
	 * @param stockAssign 库存指定方式
	 */
	public void setStockAssign(String stockAssign) {
		this.stockAssign = stockAssign;
	}

	/**
	 * 获取  缺省批次属性
	 *
	 * @return dftBatchType
	 */
	public String getDftBatchType() {
		return dftBatchType;
	}

	/**
	 * 设置 缺省批次属性
	 *
	 * @param dftBatchType 缺省批次属性
	 */
	public void setDftBatchType(String dftBatchType) {
		this.dftBatchType = dftBatchType;
	}

	/**
	 * 获取  缺省库存周转规则
	 *
	 * @return dftLocrevRule
	 */
	public String getDftLocrevRule() {
		return dftLocrevRule;
	}

	/**
	 * 设置 缺省库存周转规则
	 *
	 * @param dftLocrevRule 缺省库存周转规则
	 */
	public void setDftLocrevRule(String dftLocrevRule) {
		this.dftLocrevRule = dftLocrevRule;
	}

	/**
	 * 获取  缺省预分配规则
	 *
	 * @return dftPreAssignRule
	 */
	public String getDftPreAssignRule() {
		return dftPreAssignRule;
	}

	/**
	 * 设置 缺省预分配规则
	 *
	 * @param dftPreAssignRule 缺省预分配规则
	 */
	public void setDftPreAssignRule(String dftPreAssignRule) {
		this.dftPreAssignRule = dftPreAssignRule;
	}

	/**
	 * 获取  缺省分配规则
	 *
	 * @return dftAssignRule
	 */
	public String getDftAssignRule() {
		return dftAssignRule;
	}

	/**
	 * 设置 缺省分配规则
	 *
	 * @param dftAssignRule 缺省分配规则
	 */
	public void setDftAssignRule(String dftAssignRule) {
		this.dftAssignRule = dftAssignRule;
	}

	/**
	 * 获取  缺省补货规则
	 *
	 * @return dftSupplyRule
	 */
	public String getDftSupplyRule() {
		return dftSupplyRule;
	}

	/**
	 * 设置 缺省补货规则
	 *
	 * @param dftSupplyRule 缺省补货规则
	 */
	public void setDftSupplyRule(String dftSupplyRule) {
		this.dftSupplyRule = dftSupplyRule;
	}

	/**
	 * 获取  缺省质检规则
	 *
	 * @return dftQtRule
	 */
	public String getDftQtRule() {
		return dftQtRule;
	}

	/**
	 * 设置 缺省质检规则
	 *
	 * @param dftQtRule 缺省质检规则
	 */
	public void setDftQtRule(String dftQtRule) {
		this.dftQtRule = dftQtRule;
	}

	/**
	 * 获取  体积重量计算方式
	 *
	 * @return chargeRule
	 */
	public String getChargeRule() {
		return chargeRule;
	}

	/**
	 * 设置 体积重量计算方式
	 *
	 * @param chargeRule 体积重量计算方式
	 */
	public void setChargeRule(String chargeRule) {
		this.chargeRule = chargeRule;
	}

	/**
	 * 获取  费率代码
	 *
	 * @return rateId
	 */
	public String getRateId() {
		return rateId;
	}

	/**
	 * 设置 费率代码
	 *
	 * @param rateId 费率代码
	 */
	public void setRateId(String rateId) {
		this.rateId = rateId;
	}

	/**
	 * 获取  结算方
	 *
	 * @return settleId
	 */
	public String getSettleId() {
		return settleId;
	}

	/**
	 * 设置 结算方
	 *
	 * @param settleId 结算方
	 */
	public void setSettleId(String settleId) {
		this.settleId = settleId;
	}

	/**
	 * 获取  承运商
	 *
	 * @return carrierId
	 */
	public String getCarrierId() {
		return carrierId;
	}

	/**
	 * 设置 承运商
	 *
	 * @param carrierId 承运商
	 */
	public void setCarrierId(String carrierId) {
		this.carrierId = carrierId;
	}

	/**
	 * 获取  一频分配排序规则
	 *
	 * @return firstOrderRule
	 */
	public String getFirstOrderRule() {
		return firstOrderRule;
	}

	/**
	 * 设置 一频分配排序规则
	 *
	 * @param firstOrderRule 一频分配排序规则
	 */
	public void setFirstOrderRule(String firstOrderRule) {
		this.firstOrderRule = firstOrderRule;
	}

	/**
	 * 获取  币种
	 *
	 * @return moneyType
	 */
	public String getMoneyType() {
		return moneyType;
	}

	/**
	 * 设置 币种
	 *
	 * @param moneyType 币种
	 */
	public void setMoneyType(String moneyType) {
		this.moneyType = moneyType;
	}

	/**
	 * 获取  缺省收货单位
	 *
	 * @return dftRecUnit
	 */
	public String getDftRecUnit() {
		return dftRecUnit;
	}

	/**
	 * 设置 缺省收货单位
	 *
	 * @param dftRecUnit 缺省收货单位
	 */
	public void setDftRecUnit(String dftRecUnit) {
		this.dftRecUnit = dftRecUnit;
	}

	/**
	 * 获取  缺省发货单位
	 *
	 * @return depShpUnit
	 */
	public String getDepShpUnit() {
		return depShpUnit;
	}

	/**
	 * 设置 缺省发货单位
	 *
	 * @param depShpUnit 缺省发货单位
	 */
	public void setDepShpUnit(String depShpUnit) {
		this.depShpUnit = depShpUnit;
	}

	/**
	 * 获取  打印单位
	 *
	 * @return printUnit
	 */
	public String getPrintUnit() {
		return printUnit;
	}

	/**
	 * 设置 打印单位
	 *
	 * @param printUnit 打印单位
	 */
	public void setPrintUnit(String printUnit) {
		this.printUnit = printUnit;
	}

	/**
	 * 获取  EDI代码
	 *
	 * @return ediCode
	 */
	public String getEdiCode() {
		return ediCode;
	}

	/**
	 * 设置 EDI代码
	 *
	 * @param ediCode EDI代码
	 */
	public void setEdiCode(String ediCode) {
		this.ediCode = ediCode;
	}

	/**
	 * 获取  业务担当
	 *
	 * @return scope
	 */
	public String getScope() {
		return scope;
	}

	/**
	 * 设置 业务担当
	 *
	 * @param scope 业务担当
	 */
	public void setScope(String scope) {
		this.scope = scope;
	}


	/**
	 * 获取 物料主表
	 *
	 * @return material
	 */
	public Material getMaterial() {
		return material;
	}

	/**
	 * 设置 物料主表
	 *
	 * @param material 物料主表
	 */
	public void setMaterial(Material material) {
		this.material = material;
	}

	/**
	 * 获取 物料主表
	 *
	 * @return materialId
	 */
	public String getMaterialId() {
		return materialId;
	}

	/**
	 * 设置 物料主表主键
	 *
	 * @param materialId 物料主表主键
	 */
	public void setMaterialId(String materialId) {
		this.materialId = materialId;
	}

	/**
	 * 获取 客户基本信息表
	 *
	 * @return customer
	 */
	public Customer getCustomer() {
		return customer;
	}

	/**
	 * 设置 客户基本信息表
	 *
	 * @param customer 客户基本信息表
	 */
	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	/**
	 * 获取 客户基本信息表
	 *
	 * @return customerId
	 */
	public String getCustomerId() {
		return customerId;
	}

	/**
	 * 设置 客户基本信息表主键
	 *
	 * @param customerId 客户基本信息表主键
	 */
	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}

}
